package com.yonyou.crm.sys.org.rmimpl;

import java.util.List;
import java.util.Map;
import com.yonyou.crm.sys.org.itf.ISysOrgBizService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.yonyou.crm.common.page.entity.Page;
import com.yonyou.crm.sys.org.entity.SysOrgVO;
import com.yonyou.crm.sys.org.rmitf.ISysOrgRmService;

@Service("orgService")
public class SysOrgRmServiceImpl implements ISysOrgRmService{
	
	@Autowired
	private ISysOrgBizService sysOrgBizService;
	
	@Override
	public Page<SysOrgVO> getPage(Page<SysOrgVO> page,
			Map<String, Object> condMap) {
		return sysOrgBizService.getPage(page,condMap);
	}
	
	@Override
	public SysOrgVO getDetail(Long id) {
		return sysOrgBizService.getDetail(id);
	}
	
	@Override
	public SysOrgVO insert(SysOrgVO sysOrgVO) {
		return sysOrgBizService.insert(sysOrgVO);
	}
	
	@Override
	public SysOrgVO update(SysOrgVO sysOrg) {
		return sysOrgBizService.update(sysOrg);
	}
	
	@Override
	public List<Map<String,Object>> getSysOrgTree() {
		return sysOrgBizService.getSysOrgTree();
	}
	
	@Override
	public List<Map<String,Object>> getTreeByOrgType(Integer orgType, Long fatherorgId,Long id) {
		return sysOrgBizService.getTreeByOrgType(orgType, fatherorgId,id);
	}

	@Override
	public Object selectFieldsByIds(Object[] ids) {
		return sysOrgBizService.selectFieldsByIds(ids);
	}
	
	@Override
	public int batchDelete(String[] idStrs) {
		return sysOrgBizService.batchDelete(idStrs);
	}
	
	@Override
	public String batchUpdateEnablestate(String[] idArray, Integer enableState) {
		return sysOrgBizService.batchUpdateEnablestate(idArray,enableState);
	}
	public List<Map<String, Object>> getSysOrgVoByCondition(Map<String, Object> paraMap){
		return sysOrgBizService.getSysOrgVoByCondition(paraMap);
	}
}
